package com.liy.cloud.base.service.impl;

import com.liy.cloud.base.dao.BaseEquPartDao;
import com.liy.cloud.base.entity.BaseEquPartEntity;
import com.liy.cloud.base.service.BaseEquPartService;
import com.liy.cloud.common.ext.dao.IExtBaseDao;
import com.liy.cloud.common.ext.service.impl.ExtBaseServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Auther: libs
 * @Date: 2018/6/25 09:10
 * @Description:
 */
@Service
public class BaseEquPartServiceImpl extends ExtBaseServiceImpl<BaseEquPartEntity, String> implements BaseEquPartService {

    @Resource
    private BaseEquPartDao baseEquPartDao;

    @Override
    public IExtBaseDao<BaseEquPartEntity, String> getDao() {
        return baseEquPartDao;
    }

    @Override
    public int update(BaseEquPartEntity baseEquPartEntity) throws Exception {
        baseEquPartEntity.init();
        return super.update(baseEquPartEntity);
    }
}
